<div class="row mt-4">
    <div class="col-4 offset-3">
        <form method="POST" action="<?php echo url('update'); ?>">
            <?php 
                echo app\component\httpReferer\HttpRefererComponent::getInputHtmls();
            ?>
            <input type="hidden" name="id" value="<?php echo $clazz->id; ?>" />
            <div class="form-group row">
                <label for="name" class="col-4 text-right col-form-label">名称：</label>
                <input type="text" value="<?php echo $clazz->name; ?>" class="form-control col-8" id="name" aria-describedby="班级名称" name="name" required>
            </div>
            <div class="form-group row">
                <label class="col-4 text-right col-form-label" for="entranceDate">入学日期:</label>
                <input type="date" value="<?php echo dateIntToDateString($clazz->entranceDate); ?>" class="form-control col-8" id="entranceDate" aria-describedby="入学日期" name="entranceDate" required>
            </div>
            <div class="form-group row">
                <label class="col-4 text-right col-form-label" for="numberOfStudents">学生人数: </label>
                <input type="number" value="<?php echo $clazz->numberOfStudents; ?>" class="form-control col-8" id="numberOfStudents" aria-describedby="学生人数" name="numberOfStudents" required>
            </div>
            <div class="form-group row">
                <label class="col-4 text-right col-form-label" for="user">班主任:</label>
                <?php echo app\component\selectUser\SelectUserComponent::render($clazz->user->id); ?>
            </div>
            <div class="form-group row">
                <div class="col-8 offset-4">
                    <button class="btn btn-primary">保存</button>
                </div>
            </div>
                
        </form>
    </div>
</div>